how to find local maximum and minimum

welcome to shbcf.ru